package censorboty;

public class CensorWordEntry implements Comparable<CensorWordEntry>{

	private int startpos;
	private CensorWord censorW;
	
	public CensorWordEntry(int sp,CensorWord cw){
		this.startpos=sp;
		this.censorW=cw;
	}
	public CensorWord getCensorW() {
		return censorW;
	}
	public int getStartpos() {
		return startpos;
	}
	
	@Override
	public int compareTo(CensorWordEntry cwEnt) {
		return this.startpos-cwEnt.startpos;
	}
	public String ret_String(){
		return censorW.strHelper();
	}

}
